import urllib.request
from selenium import webdriver


url = 'https://image.baidu.com/search/index?tn=baiduimage&ipn=r&ct=201326592&cl=2&lm=-1&st=-1&fm=detail&fr=&hs=0&xthttps=111110&sf=1&fmq=1615714773579_R&pv=&ic=0&nc=1&z=&se=&showtab=0&fb=0&width=&height=&face=0&istype=2&ie=utf-8&word=%E6%B7%B1%E5%9C%B3&oq=%E6%B7%B1%E5%9C%B3&rsp=-1'
Broswer = webdriver.Chrome()
Broswer.get(url)
Broswer.maximize_window()

Images = Broswer.find_elements_by_css_selector('div.imgbox img[class="main_img img-hover"]')

i = 0
for pic in Images:
    img_url = pic.get_attribute('data-imgurl')
    urllib.request.urlretrieve(img_url, str(i) + '.jpg')
    i += 1
    if i == 5:
        break
Broswer.quit()